﻿@{
    ViewBag.Title = "RaiseRequestSuccess";
}

@model DiaosFix.Core.Requests
           
<h2>Your request has been submitted</h2>

@if (!(ViewBag.ErrorMessage as string).IsEmpty())
{
    <p>Error: @ViewBag.ErrorMessage</p>
}
else
{
    <fieldset>
        <legend>Request ID: @Model.Id - @Model.RequestArea.AreaName</legend>
        <div class="request-item">
            <p>Opened At: @Model.OpenDate, Assigned To: @Model.AssignedToUser.Username (@Model.AssignedToUser.RealName)</p>
            <p>@Model.RequestDescription</p>
        </div>
        @Html.ActionLink("Go to My Open Requests", "MyOpenRequests")
    </fieldset>
}